<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
<input type="button" value="按一下" onclick="alert('你噶了')">
<script src="my.js"></script>
</body>
</html>